﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Logo
{
    public class LeftCommand : Logo.command.Command
    {
        double angle;

        public LeftCommand(LogoDraw logo, double angle)
        {
            this.logo = logo;
            this.angle = angle;
        }

        public override void Execute()
        {
            logo.AddLog("LEFT " + angle);
            logo.Rotate(-angle);
        }
    }
}
